package com.example.error;

import lombok.Getter;

@Getter
public enum ErrorCode {

    USER_NOT_FOUND(1001, "User not found"),
    INVALID_REQUEST(1002, "Invalid request"),
    SERVER_ERROR(1003, "Server error");

    private final int code;
    private final String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
